package com.ty.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.entity.UserEntity;
import com.ty.req.UserLoginReq;
import com.ty.req.UserSaveReq;
import com.ty.req.UserUpdateReq;
import com.ty.resp.CommonResp;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/12/31 11:48
 */
public interface IUserService extends IService<UserEntity> {
    CommonResp register(UserSaveReq req);

    UserEntity login(UserLoginReq req);
    UserEntity queryByPhone(String phone);
    Boolean updatePasswordByIdAndOldPassword(UserUpdateReq sysUser);
    Boolean updatePhone(UserUpdateReq sysUser);
    CommonResp getUser(Page page,String name);
}
